﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gin;
using Gin.Commands;

namespace Plugin1
{
    public class IISRestartCommand: Command
    {
        public string ServerName { get; set; }

        public override void Do(ExecutionContext context) 
        {
            ShowMessage cmd = new ShowMessage()
            {
                 MessageText = String.Format("IIS Server \" {0} \" Restarted", ServerName)
            };
            cmd.Do(context);
        }
    }
}
